package com.pattern.decorator.case02;

/**
 * 快乐柠檬的饮料分为三类：红茶、绿茶、咖啡，在这三大类的基础上，又增加了许多的口味，
 * 什么金桔柠檬红茶、金桔柠檬珍珠绿茶、芒果红茶、芒果绿茶、芒果珍珠红茶、烤珍珠红茶、烤珍珠芒果绿茶、椰香胚芽咖啡、焦糖可可咖啡等等
 */
public class Client {

    public static void main(String[] args) {
        Beverage beverage = new GreenTea();
        beverage = new StrawBerryDecorator(beverage);
        beverage = new AppleDecorator(beverage);
        System.out.println(beverage.type());
        System.out.println("共花费了"+beverage.price()+"元");
    }

}
